package com.adcc.loadsheet.billing.mapper.mysql.permission;

import com.adcc.loadsheet.billing.entity.permission.PermissionEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 权限表Mapper
 * Created by zhaoml on 2020-09-22.
 */
@Mapper
public interface PermissionEntityMapper {

    //根据条件获取权限
    List<PermissionEntity> select(Map<String, Object> map);

    //根据用户查询权限名称
    List<String> selectPermissionDescriptionsByContractUserId(Integer contractUserId);

    //根据权限id查询权限名称
    List<String> selectPermissionDescriptionsByIds(String functionPermissionIds);
}